#!/bin/bash

sed -i "{:begin; /\],/! {$! {N;b begin}; }; s/\"deviceTypes\":.*\]/\"deviceTypes\": \[\]/; };" $1
sed -i "{:begin; /\],/! {$! {N;b begin}; }; s/deviceTypes:.*\]/deviceTypes: \[\]/; };" $1

